[NFC][SYCL] Make clang-format tolerate more LIT checks#5235
[NFC][SYCL] Make clang-format tolerate more LIT checks#5235bader merged 3 commits intointel:syclfrom
Conversation
Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
|
@MrSidims, @romanovvlad, the description of the PR added this exception promises something more than what we have implemented.
Do we want to fix the implementation to match the description? |
I do believe, that the intention was to enable clang-format for C++ code in the tests. I'm not sure why we would like to follow clang-format for check/run strings and LLVM IR itself. |
I think you are missing my point. Another problem with this whole approach is that tests must use only standard FileCheck keywords and I don't see this rule to be harden by CI or some other way. |
"(RUN|FAIL|REQUIRES|UNSUPPORTED|CHECK) *:" I think this matches a keyword followed by a colon with 0 or more spaces between them. Right? |
|
@bader please check out the newest approach, hope I did get you correctly. |
Co-authored-by: Alexey Bader <alexey.bader@intel.com>
|
I suggest you test this change with 4bc20ab. |
|
@bader clang-format there has passed: https://github.com/intel/llvm/runs/4651131820?check_suite_focus=true |
|
Good. |
bader
left a comment
There was a problem hiding this comment.
Good enough for me. It's not perfect, but I don't think it's worth improving it before we see the need for this.
I'd like original author (@romanovvlad) to approve.
|
@romanovvlad could you please take a look? |
Agree, do not think it's common to use these keywords in regular comments. I'm OK with current solution. |
Signed-off-by: Dmitry Sidorov dmitry.sidorov@intel.com